package com.miao.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @Author <a href="https://gitee.com/a-tom-is-cry">Xing</a>
 * @Date 2025/9/16 21:33
 * @Description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "products")
public class EsDocumentEntity {
    @Id
    private String id;

    @Field(type = FieldType.Text)
    private String key;

    @Field(type = FieldType.Text)
    private String value;
}
